package com.zsw.customer2c.service.impl;


import com.zsw.customer2c.service.testService;
import org.springframework.stereotype.Service;

@Service
public class testServiceFallback implements testService {

    private String message = "当前调用的服务端是ServiceProducer1，该服务端异常";

    @Override
    public String hi(String id) {
        System.out.println("熔断：Fallback,暂停服务,参数：" + id);
        return message;
    }

    @Override
    public String test() {
        return message;
    }

    @Override
    public String expectFallback() {
        return message;
    }
}
